#ifndef __STACK_INT_H__
#define __STACK_INT_H__

typedef int StackElementType;
typedef struct {
	StackElementType* data;
	int last;
	int capacity;
}_Stack, * Stack;

#ifndef ERROR
#define ERROR -99999
#endif

Stack stack_create(int capacity);
Stack stack_free(Stack s);
Stack stack_push(Stack s, StackElementType x);
StackElementType stack_pop(Stack s);
int stack_is_full(Stack s);
int stack_is_empty(Stack s);

#endif //__STACK_INT_H__